import request from "@/utils/request";

export function search(params) {
  return request({
    url: "/sinohis/pension/sys/resource/top/tree",
    method: 'get',
    params

  });

}
export function add(data) {
  return request({
    url: "/sinohis/pension/sys/resource",
    method: 'post',
    data

  });

}
export function edit(data) {
  return request({
    url: "/sinohis/pension/sys/resource",
    method: 'put',
    data

  });

}
export function Delete(params) {
  return request({
    url: "/sinohis/pension/sys/resource/"+params.mark,
    method: 'delete',
    params

  });

}
